package cn.itcast.domain.cargo;

import cn.itcast.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Finance extends BaseEntity implements Serializable {
    private String id; //集装箱编号
    private String exportNos;  //报运合同号
    private String shipmentPort;  //装运港
    private String destinationPort;  //目的港
    private Double totalAmount; //采购总金额
    private Double totalExamount;  //出口总金额
    private Double totalTax;  //关税总额
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputDate;  //制单日期
    private String inputBy;  //制单人

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.id
     *
     * @return the value of co_finance.id
     *
     * @mbg.generated
     */
    public String getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.id
     *
     * @param id the value for co_finance.id
     *
     * @mbg.generated
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.export_nos
     *
     * @return the value of co_finance.export_nos
     *
     * @mbg.generated
     */
    public String getExportNos() {
        return exportNos;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.export_nos
     *
     * @param exportNos the value for co_finance.export_nos
     *
     * @mbg.generated
     */
    public void setExportNos(String exportNos) {
        this.exportNos = exportNos == null ? null : exportNos.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.shipment_port
     *
     * @return the value of co_finance.shipment_port
     *
     * @mbg.generated
     */
    public String getShipmentPort() {
        return shipmentPort;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.shipment_port
     *
     * @param shipmentPort the value for co_finance.shipment_port
     *
     * @mbg.generated
     */
    public void setShipmentPort(String shipmentPort) {
        this.shipmentPort = shipmentPort == null ? null : shipmentPort.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.destination_port
     *
     * @return the value of co_finance.destination_port
     *
     * @mbg.generated
     */
    public String getDestinationPort() {
        return destinationPort;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.destination_port
     *
     * @param destinationPort the value for co_finance.destination_port
     *
     * @mbg.generated
     */
    public void setDestinationPort(String destinationPort) {
        this.destinationPort = destinationPort == null ? null : destinationPort.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.total_amount
     *
     * @return the value of co_finance.total_amount
     *
     * @mbg.generated
     */
    public Double getTotalAmount() {
        return totalAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.total_amount
     *
     * @param totalAmount the value for co_finance.total_amount
     *
     * @mbg.generated
     */
    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.total_examount
     *
     * @return the value of co_finance.total_examount
     *
     * @mbg.generated
     */
    public Double getTotalExamount() {
        return totalExamount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.total_examount
     *
     * @param totalExamount the value for co_finance.total_examount
     *
     * @mbg.generated
     */
    public void setTotalExamount(Double totalExamount) {
        this.totalExamount = totalExamount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.total_tax
     *
     * @return the value of co_finance.total_tax
     *
     * @mbg.generated
     */
    public Double getTotalTax() {
        return totalTax;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.total_tax
     *
     * @param totalTax the value for co_finance.total_tax
     *
     * @mbg.generated
     */
    public void setTotalTax(Double totalTax) {
        this.totalTax = totalTax;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.input_date
     *
     * @return the value of co_finance.input_date
     *
     * @mbg.generated
     */
    public Date getInputDate() {
        return inputDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.input_date
     *
     * @param inputDate the value for co_finance.input_date
     *
     * @mbg.generated
     */
    public void setInputDate(Date inputDate) {
        this.inputDate = inputDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column co_finance.input_by
     *
     * @return the value of co_finance.input_by
     *
     * @mbg.generated
     */
    public String getInputBy() {
        return inputBy;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column co_finance.input_by
     *
     * @param inputBy the value for co_finance.input_by
     *
     * @mbg.generated
     */
    public void setInputBy(String inputBy) {
        this.inputBy = inputBy == null ? null : inputBy.trim();
    }


}